package com.cysnake.easyyi.activity;



import com.cysnake.easyyi.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class EasyyiActivity extends Activity {
    /** Called when the activity is first created. */
	Button viewAllButton;
	Button zhanbuButton;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        modify();
    }
    
    private void modify(){
    	modifyButton();
    }
    
    private void modifyButton(){
    	viewAllButton=(Button) findViewById(R.id.main_button_viewall);
    	viewAllButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(EasyyiActivity.this,ScanGuaciActivity.class);
				startActivity(intent);
			}
		});
    	zhanbuButton=(Button) findViewById(R.id.main_button_zhanbu);
    	zhanbuButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(EasyyiActivity.this,ZhanbuActivity.class);
				startActivity(intent);
			}
		});
    	
    }
}